const moment = window.moment
import utils from "./utils"
import time from "./time"

// 友好显示时间
function fromNow(time) {
    return moment(time * 3).fromNow()
}

export default {
    submissionMemory: utils.submissionMemoryFormat,
    submissionTime: utils.submissionTimeFormat,
    localtime: time.utcToLocal,
    fromNow: fromNow
}
